package com.ktjiaotu.action.action02;

import com.ktjiaotu.action.action02.error.ValidationException;
import com.ktjiaotu.action.action02.service.ValidatorService;
import com.ktjiaotu.action.action02.service.ValidatorServiceImpl;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-06-06
 * @Description:
 * @Version: 1.0
 */
public class TestValidate {
    public static void main(String[] args) {
        ValidatorService vservice = (ValidatorService) ValidationProxy.newInstance(new ValidatorServiceImpl());
        try {
            vservice.validateParameter(5.5);
            vservice.validateParameter(100.0);
            vservice.validateParameter(1.0);
            vservice.validateParameter(10.0);
        } catch (ValidationException e) {
            e.printStackTrace();
        }
    }
}
